import request from '../../../plugins/axios'

export function loadRoles(data) {
    return request({
        url: '/role',
        method: 'get',
        params: data
    })
}

export function loadRolePermissions(data) {
    return request({
        url: '/role/{name}/permission'.replace("{name}",data.name),
        method: 'get',
    })
}


export function loadTreePermissions(data) {
    return request({
        url: '/permission/tree',
        method: 'get',
        params: data
    })
}
export function loadManager(data) {
    return request({
        url: '/manager',
        method: 'get',
        params:data
    })

}

export function storedManager(data) {
    return request({
        url: '/manager',
        method: 'post',
        data
    })

}



